import request from '@/utils/request'

// 查询社区介绍列表
export function listCommunityInfo(query) {
  return request({
    url: '/business/communityInfo/list',
    method: 'get',
    params: query
  })
}

// 查询社区介绍详细
export function getCommunityInfo(id) {
  return request({
    url: '/business/communityInfo/' + id,
    method: 'get'
  })
}

// 新增社区介绍
export function addCommunityInfo(data) {
  return request({
    url: '/business/communityInfo',
    method: 'post',
    data: data
  })
}

// 修改社区介绍
export function updateCommunityInfo(data) {
  return request({
    url: '/business/communityInfo',
    method: 'put',
    data: data
  })
}

// 删除社区介绍
export function delCommunityInfo(id) {
  return request({
    url: '/business/communityInfo/' + id,
    method: 'delete'
  })
}

// 导出社区介绍
export function exportCommunityInfo(query) {
  return request({
    url: '/business/communityInfo/export',
    method: 'get',
    params: query
  })
}